package com.example.gym_manage_system.service.impl;

import com.example.gym_manage_system.entity.User;
import com.example.gym_manage_system.mapper.UserMapper;
import com.example.gym_manage_system.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author qzy
 * @description 描述
 * @create 2023-12-13 13:48
 */

@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> finAll() {
        return userMapper.findAll();
    }

    @Override
    public User login(String username) {
        User user = userMapper.login(username);
        return user;
    }
}
